﻿<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
 
    <script type='text/html' template> 
        <input type='hidden' name='PID' value="{{ d.params.PID || '' }}"/>
    </script>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>公告标题</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Title' value='{{ d.params.Title || '' }}' lay-verify='required' placeholder='公告标题' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>公告内容</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Content_Edit' value='{{ d.params.Content_Edit || '' }}' lay-verify='required' placeholder='公告内容' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>公告链接</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='DetailUrl' value='{{ d.params.DetailUrl || '' }}' lay-verify='required' placeholder='公告链接' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>     
    <div class='layui-form-item'>
        <label class='layui-form-label'>是否发布 </label>
        <div class='layui-input-block'>
            <div class='layui-input-inline'>
                <script type='text/html' template>
                    <select name='Enabled_Sel'>                      <option value='0' {{ d.params.Enabled_Sel == '0' ? 'selected' : '' }}>未发布</option>                      <option value='1' {{ d.params.Enabled_Sel == '1' ? 'selected' : '' }}>已发布</option>
                    </select>
                </script> 
            </div>
        </div>
    </div>
       
    <div class='layui-form-item'>
        <label class='layui-form-label'>描述</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Description' value='{{ d.params.Description || '' }}' lay-verify='required' placeholder='描述' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>需要阅读用户</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='NeedReadUsers' value='{{ d.params.NeedReadUsers || '' }}' lay-verify='required' placeholder='需要阅读用户' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>已读用户</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='ReadUsers' value='{{ d.params.ReadUsers || '' }}' lay-verify='required' placeholder='已读用户' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div> 
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
        </div>
    </div>
</div>

<script type="text/javascript"> 
    layui.use(['form','admin','upload','laydate'], function () {
        var form = layui.form;//required（必填项）phone（手机号）email（邮箱）url（网址）number（数字）date（日期）identity（身份证） 自定义值
    });
    
    layui.data.getSelSource = function (d,sourceName) { 
         layui.use(['admin','form'], function () {
                var $ = layui.$;
                var form = layui.form;
                var admin = layui.admin;
     
        });
    }
 
     
    layui.data.setUpload = function (d) { 
        layui.use(['upload','admin'], function () {
                var $ = layui.$,
                upload = layui.upload,
                admin = layui.admin;
                var formSelects = layui.formSelects;
      
        });
    }

    
    layui.data.datedone = function (d) { 
        layui.use(['laydate'], function () {
                var laydate = layui.laydate;
     
        });
    }   
</script>
